let config = {

  socketServer: localStorage.getItem('webSocket'), // socket Server地址

  restServer: localStorage.getItem('restApi'),
  /*
     * Application AppKey
     */
  // appkey: "easemob-demo#easeim",
  appkey: localStorage.getItem('appKey'),
  /*
     * Application Host
     */
  Host: 'easemob.com',
  /*
     * Whether to use HTTPS
     * @parameter {Boolean} true or false
     */
  https: true,


  /*
    * 公有云配置默认为 true，
    * 私有云配置请设置 isHttpDNS = false , 详细文档：http://docs-im.easemob.com/im/web/other/privatedeploy
    */
  isHttpDNS: true,
  /*
    
    /*
     * isMultiLoginSessions
     * true: A visitor can sign in to multiple webpages and receive messages at all the webpages.
     * false: A visitor can sign in to only one webpage and receive messages at the webpage.
     */
  isMultiLoginSessions: true,
  /**
     * Whether to use window.doQuery()
     * @parameter {Boolean} true or false
     */
  isWindowSDK: false,
  /**
     * @parameter {Boolean} true or false
     */
  isSandBox: false,
  /**
     * Whether to console.log in strophe.log()
     * @parameter {Boolean} true or false
     */
  isDebug: true,
  /**
     * Whether to show logs in strophe
     * @parameter {Boolean} true or false
     */
  isStropheLog: false,
  /**
     * will auto connect the xmpp server autoReconnectNumMax times in background when client is offline.
     * won't auto connect if autoReconnectNumMax=0.
     */
  autoReconnectNumMax: 5,
  /**
     * the interval secons between each atuo reconnectting.
     * works only if autoReconnectMaxNum >= 2.
     */
  autoReconnectInterval: 2,
  /**
     * webrtc supports WebKit and https only
     */
  isWebRTC: true, // window.RTCPeerConnection && /^https\:$/.test(window.location.protocol),
  /**
     *  cn: chinese
     *  us: english
     */
  i18n: 'us',
  /*
     * Set to auto sign-in
     */
  isAutoLogin: true,
  /**
     * Size of message cache for person to person
     */
  p2pMessageCacheSize: 500,
  /**
     * When a message arrived, the receiver send an ack message to the
     * sender, in order to tell the sender the message has delivered.
     * See call back function onReceivedMessage
     */
  delivery: true,

  useOwnUploadFun: true, // 是否使用自己的上传方式（如将图片文件等上传到自己的服务器，构建消息时只传url）

  /**
     * Size of message cache for group chating like group, chatroom etc
     */
  groupMessageCacheSize: 200,
  /**
     * 5 actual logging methods, ordered and available:
     * 'TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR'
     */

  loglevel: 'ERROR',

  /**
     * enable localstorage for history messages
     */
  enableLocalStorage: true
};
export default config;